package com.atguigu.exam;

import java.io.File;

/**
 * 创建一个与a.txt文件同目录下的另外一个文件b.txt
 * @author xbd
 * @create 2021-05-29 17:21
 */
public class AnotherTest {
    public static void main(String[] args) {
        File file1 = new File("d:\\a\\a.txt");
        File file2 = new File(file1.getParent(),"b.txt");
    }
}
